package cn.zyq.ykb.mapper.config;

import cn.zyq.ykb.beans.config.ConfigBrokerage;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import cn.zyq.ykb.system.config.common.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * 配置-返佣金Mapper接口
 *
 * @author SystemAuth
 * @date 2023-05-29
 */
@Component
@Mapper
public interface ConfigBrokerageMapper extends BaseMapper<ConfigBrokerage> {
    List<ConfigBrokerage> list(Map<String, Object> param);

    /**
     * 获取平台任务价格配置
     *
     * @return
     */
    ConfigBrokerage queryPlatformConfig();

    /**
     * 服务商任务配置
     *
     * @param userID
     * @return
     */
    ConfigBrokerage queryServiceProviderConfig(Integer userID);
}
